package com.itcast.innerclass.Demo03;

/*
要写注释哦!!!
*/
public class Test {
    public static void main(String[] args) {
        Werker werker=Werker.ZHOULIU;
        method(werker);
    }

    public static void method(Werker werker) {
        switch (werker) {
            case ZHOUYI -> System.out.println("周一");
            case ZHOUER -> System.out.println("周二");
            case ZHOUSAN -> System.out.println("周三");
            case ZHOUSI -> System.out.println("周四");
            case ZHOUWU -> System.out.println("周五");
            case ZHOULIU -> System.out.println("周六");
            case ZHOURI -> System.out.println("周日");
        }
    }

}
